Fixed upgrade script to run always 'sudo ldconfig'