use vars.json instead of $ENV variable
tidy up and fix a minor bug
Merge pull request #41 from nilxam/goodbye_env

use vars.json to instead of $ENV variable
fix check_vars call