Modified HDR2GIF and HDR2TIFF

The components rename the file in case the older file can't be removed.