fixes version argument parsing