pub fn replace_ext(path: &str, new_extension: &str) -> Option<String>
Replaces the extension in the given path with the provided extension.
This function allows for simple associated file discovery.