Updated graphViz to work on OS X

on Mac OS X the way to open a file with the default handler is "open"

I added a switch to reflect this
Fixed code style
Merge pull request #67 from onigoetz/patch-1

Updated graphViz to work on OS X