Consider directories as part of path mappings.
Merge pull request #20 from huntc/consider-dirs

Consider directories as part of path mappings.