Helpers that strip file extension then add a different one

new_ext(.x, .ext)

ctl_ext(.x)

mod_ext(.x)

yaml_ext(.x)

Arguments

.x

file path to modify

.ext

new file extension to apply