fix exec_sql_on_uri ENV setting

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