Bugfix relating to overwriting of '$version' variable.