made the travis rabbitmq script compatible with sh

The script is a sh and not bash script. This means that [[ ...  ]] conditions don't work.