Get library path properly