Using path+__dirname to resolve schema file, should work with nested modules

Submitting this on @keikku's behalf, hope he doesn't mind. But resolution of the spec files currently requires them to exist in the current working directory. This commit makes the lookup be based on the __dirname of the js file.