Moved CD calls out of sub-bash scripts.