add environment variables for hook scripts.