Fixing issue 51

https://github.com/substack/node-resolve/issues/51