pgsql.bgwriter.sh fixes