Add check whether env vars are already set.

Fixes #127