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