Fix version checking in MySQL checks, fix #558

Also remove some trailing spaces