Test realpath cwd in file.isPathCwd and file.doesPathContain. Closes gh-1112.