Automatically determine python and dot paths

This simple fix finds python and dot on the current system path, so dot in /usr/bin is found automatically.