if a module entry point is defined, resolve submodules using the closest parent dir

fixes https://github.com/systemjs/systemjs/issues/139