Fix function for download external libs

Fixed build errors when lib name contain '/'-chars