Check directory exists