Fixed the test-slaves test as the slave failure exception is now different.
Now I manually propagate all shared-library path variables.

This was done because unfortunately on OSX it is not possible to access
the environ global variable from a shared library.