Made the while loop to extract the IDs of the dependant libs.

derp