Capture the dir property

See https://github.com/strongloop/generator-loopback/issues/66
Merge pull request #67 from strongloop/feature/fix-issue-66

Capture the dir property