Fix leak in mkdirs
Cleanup whitespace