Shotgun PostgreSQL dump generation fixed

Multiply writing dump_config into settings fixed.
Path to .pgpass file fixed. Information from pwd used instead
value of environment variable HOME

Change-Id: Ib701a57fb6386d02cc93eb3d9f588f7abb1aac9f
Closes-Bug: #1317018
Merge "Shotgun PostgreSQL dump generation fixed"