Fix up debian and ubuntu checks