Remove file overwriting, fix #36