Fixed mkdirs assertion, mkdirs can return false if directories already exist