Fixed the check a empty dir for the graphviz directory