Fix undefined condition and add spec
version bump to 0.1.2
Merge pull request #2 from ngs/fix-undefined-env-condition

Fix undefined condition and add spec