added platform checking for setenv