Sanitize the home directory to ensure that we do not accidentally locate a file called `~/.nonexistentfile`.