Fix single instance on Win. Create cache dir.