Fix makedirs.