Changed the way the script downloads libraries.