Include revision number in the "version" command line option (Closes #1711)

I blatantly copied this from the main menu.