some minor cleanup and refactoring
issue #76: added parameters to configure the browser version to CLI and Gradle implementations