Add support for submodules in the exec command

Using the exec command I've noticed that it breaks when running inside a submodule. The git repository which needs to be cloned is never mounted, since it lives outside the submodule directory.

What do you think about the fix?