fix ordering so that --version flag works again