fixed bug with the configure script by setting the environment variable directly