changed the way the install script recognizes packages