fixed travis file with bash to detect branch