Adding mkdirs function.