Minor bug, guards for makedirs.