Move @version number to class constant and use it in --version flag.

Just a minor tweak prior to merge ;)