cd "$INSTALL_DIR"

Only pull in cd "$INSTALL_DIR" and cd -

The rest is not needed, but maybe this fixes a bug where you are in the wrong directory initially from the install dir.