Finally got the postgres path to work.

Exported a new path in .bash_profile.