Fixed mkdirSync in cake file, added error messaging