Set correct AppData dir for more Windows versions

Replace the hard-coded path with an environment variable supported by all versions of Windows since XP.