Added code to check first for the api.conf in the CWD.
The Search post wasn't performing as expected.