Fixed mkdirSync to write to workspace instead of root