[#858] better error handling when psql not found correctly