In paths, "~" should always be the user's home folder and not the base folder.