[util shell] Make and use chdir