Moving export of env var to try and fix build.