format sources
createFolder: add unix compatibility