Created by: gaearon
This ensures we set both BABEL_ENV and NODE_ENV in case the preset reads BABEL_ENV instead.
This probably fixes https://github.com/facebookincubator/create-react-app/issues/2377 although I still don’t understand why BABEL_ENV=undefined (visible in the message) was preferred to an existing NODE_ENV. Perhaps it only fixes it for some cases.