fixed bug with paths in included modules not resolving

Basically if you tried to use a module with a glslify transform as a dependency, then the current path resolution would fail.  This fix seems to solve the problem, though it would be good to get have someone more familiar with the code take a second look.

I am not sure if maybe something else needs to be done to handle dependency resolution for submodules.