Move CASPERJS ENV setting to before build.