Throw UnsupportOperationException for submodule-directories for now until we add full support for submodules