correct tweaking of PATH and LD_LIBRARY_PATH