added ability to set home based on environment variable