[CHORE] Add global pg module to travis.

[BUG] Move global pg install to before_install script.