Improve pkgin regex detection