Check directory for value