Adding ability to force creation of a directory if a file with the same name exists

Adding ability to force creation of a directory if a file with the same name exists in place, with the ability to backup the existing file.  Fixes #13757.