parse out submodule path when not in a .git directory (#273).