submodule: require the submodule path to contain directories only