Raise error when required config vars are not set.

Closes #180.