Fix Windows problem

Windows doesn't have `$_SERVER['HOME']`. Instead we use Windows environment variable like `%AppData%`.