Redmine#2753: do not call readlink() on a directory to avoid spurious error message
Merge pull request #706 from tzz/tzz/2753-file_select-calls-readlink-on-directory

Redmine#2753: do not call readlink() on a directory to avoid spurious error