Use -l to check for a symlink.

Not -s. From [-X.pod](http://perldoc.perl.org/functions/-X.html):

    -s  File has nonzero size (returns size in bytes).
    -l  File is a symbolic link.

Bug introduced in 9a1c0dbf.