Change references to mod/assignment to mod/assign

This fixes the issue which prevented submissions from being uploaded on
Moodle 2.7 (or any other version without mod/assignment).