Set working directory functions correct for Windows