Support `.pairs` in the user's HOME directory, as advertised.

The README file states that a `.pairs` file may be "in project root or your home folder." This isn't true unless the working directory is under the user's home directory.

This PR contains two commits: one to slightly clean up the directory-search logic; and then a second to implement the addition of the user's home directory to the end of the search path.