makedirs apparently fails when it exists