Fix call to local sar command and limit test on application_name for pg version >= 9.0. Thanks to Julien Rouhaud for the report.