cd to a directory by matching the end of the directory name