Compatibility with 2.7+

Moodle 2.7 officially deprecated the use of $module in mod/*/version.php files.