Doing the version and rev flags the *right* way