check for setenv(), getenv() and opendir()