Fix instance comparison for deps in bin/ansible-galaxy

Fixes #8884