Duplicate worker names

When using a custom image on the cloud (not AWS), I’ve run into an issue where the worker name remains static (same as when the snapshot was taken) even though the hostname of the machine changes - how can I configure this so the worker name inherits the hostname?
I’ve deleted the /var/lib/Thinkbox/Deadline10/workers/[workername] folder thinking it would re-create the worker with the correct name on startup but that isn’t working.
Thanks!

I got around this by disabling ‘start worker on startup’ in the launcher.ini and running /opt/Thinkbox/Deadline10/bin/./deadlineworker -name "$(hostname)" --nogui at startup, but I thought there was different way of doing this.