Apply same "query module directory" pattern to the installation of the mod files.