Fixed the settings directory problem in Windows.