Change mkdir SyncFolders fix so that it is cross-platform