backported --version option from release1.0