made version detection more stable, including enterprise builds (with ssl). Closes #289.