Adds function to make a dir and then chdir to it.