fix debian installed package detection