update-hooks also updates env