Common code between chef app module installer and middleware installer