Fixes problems with docker registries
This commit changes the way priveleges are escalated. If not run as root, the script attempts to call itself from /usr/local/bin. Either way, the HOME environment variable is explicitly set to '/root', alleviating certain issues with credential storage (specifically when using Docker registries).