Improve removing the library path