PUP-2040/PE-3113 Ignore symlinks in module build with pmtignore/gitignore.

Before this commit, pmtignore/gitignore functionality worked, but only after
checking for symlinks, so it was impossible to ignore symlinks. This
commit allows symlinks to be ignored, too.