Update to support curl, produce more verbose output, and use stdlib.sh