updated cd.sh so that it can change to a dir which is glob