replace ~ with /home/