Check for the existence of a directory