Fixed bug where running user does not have a home directory.
(This happens when it is run using an init script).