Made libs.txt generation a function
chomp