Fixed up the version detection