give_ext: Ensure a file name has the intended extension.
Usage
give_ext(string, ext, replace = FALSE)
Arguments
ext
The intended file extension (with or without the ".").
replace
If the file has an extension already, replace it (or append
the new extension name)?