Updated to use mkdirSync method