Allow environment to be set on create

Make GearBasePath configurable