Fix bash script execution for travis