[gather-logs] Fix postgresql activity dump

This helps ensure that we only run the pg activity dump on nodes
running postgresql and that we do so as the correct user.
[gather-logs] Don't try to use dig if it doesn't exist.
gather-logs. pipe err to out
gather logs, fix bash syntax
Resolve conflict w/ #425