readlink is unnecessary with isdir and using it can result in incorrect paths
without extra work on some platforms. Fixes committing through symlinks on
Linux.


git-svn-id: svn+ssh://svnrepo/projects/nitpick/trunk@7587 561c3618-0fe6-0310-b5d6-fc65c73fee30