Raise unless the proper environment variable is set