Fix travis build:
* Update android sdk download used
* Move shell function definition outside of yaml