Fix incorrect bash test