Added realpath to dirname usages
Merge pull request #768 from bobvandevijver/dirname-v1.0

Added realpath to dirname usages
Merge branch 'v1.0' into v1-with-array-filtering-support