Fix PostgreSQL installation

* Set locale properly (setting environment as seen in https://github.com/Ansibles/postgresql).
* libpq-dev is installed too.
Fix '.gemrc' file permissions