Fix path test in the face of dotfiles