I originally posted this question on the Galaxy Biostars, but later realized that galaxy-dev is probably more appropriate. So, here it goes. 

I'm trying to automate the installation of a tool's dependency with a tool dependency definition repository. During the package installation process, after moving the contents of a downloaded archive to the installation directory (i.e. $INSTALL_DIR), I simply want to change to that target directory away from the initial temporary working directory. 

However, I can't seem to change directory, either with a change_directory action or a cd shell_command action. Running pwd before and after attempting to change directory confirms this (see attached for installation log). I even made sure that $INSTALL_DIR is different from my initial working directory. 

Best regards, 
Bruno