fix condition for library path