Changed method of getting library path