bin/pacprune: small refactor