Commit before changing directories.