Refined ubuntu checking