Made more robust the ls invocations in INSTALL_LIB helper.