Move responsibility for checking if module xml exists