fileutil.Replace - remove destination only when a directory.
fileutil.Replace - remove destination only when a directory.

In cases where a rename fails the fileutil.Replace would delete the
source files/folder.

There is no easy way to make directory renaming atomic, but for files
os.Rename is atomic and replaced the destination file so there is no
need to remove the destination file explicitly.

Signed-off-by: Krasi Georgiev <e7a6a3244daab0176ed092eaae0bd186fa4e17ac@users.noreply.github.com>

keegancsmith/prometheus,kangwoo/prometheus,kangwoo/prometheus,prometheus/prometheus,keegancsmith/prometheus,prometheus/tsdb,prometheus/prometheus,kangwoo/prometheus,prometheus/prometheus,GoogleCloudPlatform/prometheus,prometheus/prometheus,keegancsmith/prometheus,Gouthamve/prometheus,Gouthamve/prometheus,GoogleCloudPlatform/prometheus,Gouthamve/prometheus,GoogleCloudPlatform/prometheus,GoogleCloudPlatform/prometheus,kangwoo/prometheus,alileza/prometheus,GoogleCloudPlatform/prometheus,keegancsmith/prometheus,prometheus/prometheus,alileza/prometheus,Gouthamve/prometheus,keegancsmith/prometheus,alileza/prometheus,alileza/prometheus,alileza/prometheus