Better way of locating the Python 2.6/2.7 bin

It appears we can't trust sys.executable on some Unix machines as well.

Fixes #607.