fixed putenv statements