#130 use two passes algorithm but don't use appending for PATH and LIBPATH