ensure NODE_ENV is valid, default regex for walk