Capture the dir property

See https://github.com/strongloop/generator-loopback/issues/66