Handle absolute and relative paths to submodules