Use 14.04-specific version of package query function as required by diag...

...nostics and login scripts