Fix: license_finder subcommands create empty dependency files

[Fixes #72184738]