Much nicer error messages when pgdiagnose fails
Merge pull request #1140 from will/bettererrorhandleingforpgdiagnsoe

Much nicer error messages when pgdiagnose fails
fix exec_sql_on_uri ENV setting

allows code to work on windows (where env command is undefined)