makedirs fails if dir exists