Solves issue #2. pg_config is used iff the program is avaiable