making local appdata path finding a bit more sophisticated on MinGW

targeting %LOCALAPPDATA% directly first, which works for vista upwards,
but also ensuring successful fallback for winxp in the case that's not set