Fixing dirPath resolution
Merge pull request #177 from pranavparikh/master

Fixing dirPath resolution