Increments a version number and outputs to stdout