message: fix: correctly extract base name from path
diff: @@ -32,9 +32,12 @@ pub fn ensure_dir(filepath: impl AsRef<Path>) -> Result<(), Report> {
  pub fn basename(filepath: impl AsRef<Path>) -> Result<String, Report> {
  let filepath = filepath.as_ref();
  +
  Ok(
  filepath
  .with_extension("")
  + .file_name()
  + .ok_or_else(|| eyre!("Cannot get filename of path {filepath:#?}"))?
  .to_str()
  .ok_or_else(|| eyre!("Cannot get basename of path {filepath:#?}"))?
  .to_owned(),
  