Renames files downloaded from Moodle and deletes empty text submissions