Update env.js

On windows, path join doesn't work with undefined values, so coerce into string