adjusted environment to search build directory if libraries aren't found...

... in install directory, allows for tests to pass when using of make, make test, make install workflow. fixes #592.