Fix error when run outside of cloud formations

Fixes Issue #1