Minor changes to version checking.