changing ~ to homefolder