(PUP-3678) skip non-directories on the module path

This avoids pointless warnings about invalid modules that started with puppetlabs/puppet#3261.
Yeah, no worries.  The inline documentation for `#modulepath` is a bit ambiguous and tripped me up at first too.