fix directory backup overwrites