set environment by existence of 'env.dev.js'