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.
Make dot check Windows-compatible.
Merge pull request #1266 from QuLogic/auto-dot

Search for dot executable in the PATH.