Fix search path construction in tests.

This way the tests can be run directly from within the tests directory
and they might also have a chance of running on Windows (where the
path separator is different).