Respect environment settings when running cloud hooks.