prevent unresolved modules from throwing errors.

also ensures that the full path is returned from globule when a cwd is defined.