if I do a getenv("windir") and windir does not exist getenv crashes. Is there a way around this?