Change equality tests to work in bash and sh