bash: make Android tree switching a function