Rewrite some if testing
Merge branch 'master' of github.com:iblis17/env-config