Fixed LD_LIBRARY_PATH handling in wrapper