fix demoDirectory on windows