Removed hardcoded home directory

Removed hardcoded home directory and read from $HOME environment variable instead.