correctly mark modules depending on other modules whose external dependencies were not found as not found, fix #332