Fix some conditions exposed by tests
Fix some conditions exposed by tests

pagodabox/nanobox-engine-nodejs,nanobox-io/nanobox-engine-nodejs,nanobox-io/nanobox-engine-nodejs,pagodabox/nanobox-engine-nodejs,pagodabox/nanobox-engine-nodejs,nanobox-io/nanobox-engine-nodejs