Added ability to cd to the nearest directory if selected doesn't exist