Fixed bug: PATH now contains dirname instead of full library path