Add support for version numbers passed in either as environment variable...

...s or java properties and changed Java System.getProperty calls to scala's sys.props.get