Fix JENKINS-13444: Do not follow symlinks with ant pattern

Do not follow symlinks when ant patterns are used. To make it the same
behaviour as without ant patterns.

See https://issues.jenkins-ci.org/browse/JENKINS-13444

I have only done a minor amount of testing on this patch.