Detect and create correct directory.

The code was checking for the existence of AppData and then crashing when trying to writeout to AppData/TAMU.