Made whether we run ldconfig more inteligent