refactored shell script out of travis yaml file close #2