Removed hardcoding of home directory