Changed home directory to be retrieved from environment variable.