Added error case for mkdir root directories.