Since this is a library, place issetugid() before every getenv()
ok miod