Fixed basename in tag subcommand