Search for dot executable in the PATH.

Current code checks if the path exists, but not if it exists in the user's PATH somewhere. This needlessly requires the site.cfg to be modified, even though we can run `dot` just fine.
In the light of #467, we should probably be using `os.path.isabs` here.