Lay groundwork for chdir (cd)