Replace given filename by a version that contains an incremental number in order to prevent overwriting existing files.
ensure_unique_filename(path, add_num = TRUE)
A unique filename.
string; Filename including path for which to check uniqueness.
boolean; if TRUE, add the incremental number anyways, even if no filename conflict exists.