Fallback to `config_locale` only when it's not blank

fixes the build
Add pg to Gemfile