Add correct logic for CasperJS env variable