added panopoly install hook code to deal with dependency issues