Changed hard-coded home directory to ~