libertas: fix the 'compare command with itself' properly