Changed hard coded home directory to use $HOME