Fixed version checking to support Ubuntu 14 and beyond