[MDL-43040] Use $plugin in version.php

The usage of $module in mod/xxx/version.php files is now deprecated. Please use $plugin instead. The support for the legacy notation will be dropped in Moodle 2.10.