Tweak unit test script to ensure LD paths are set