Use HOME environment variable for home directory instead of ~.