fix bash script for travis