Test if directory exists