Compatibility with 2.7+

Moodle 2.7 officially deprecated the use of $module in mod/*/version.php files.
Merge pull request #48 from skelty-unikent/feature/2.7_compat

Compatibility with 2.7+