Double == causes error on travis (dash shell)

Partial solution for #379