Added code to change library path to local version during development.
Moved logging before assertion so I can see the problem causing the assertion failure.