Add is_builtin.  Use it to detect whether the shell has a dirs command.