Move lib.sh
Update lib path in build files