A basic replacement for wget in pure Bash