fixed it to add .makeDirs() call, it makes sense especially for domain mode.