Fixed bad version detection in Ubuntu scripts.