Fix UpdateConfFile destination directory calculation
Fix UpdateConfFile to directory detection
Test UpdateConfFile detection of invalid to directory
v1.25

        [Fixes]

        - UpdateConfFile: the specification of a subdirectory as the
          destination file wasn't working.