check that a module exists while checking for overwrites