Generalised version check to use Debian instead of Ubuntu