Extract lib.sh