Add submodule to the valid_paths dict.