Adds a check for the needed envs.

Signed-off-by: Markus Hubig <mhubig@gmail.com>