return correct filename with OVERWRITE_EXISTING, fixed #157