added support for env update hooks
fixed HOME