deal with build env var being set when testing opts