Fixed shebang line

Added #!/bin/sh at the top so the script runs correctly from fish.
Change USER_AGENT to fix some sites

Changed the default User-agent string to emulate Safari to fix some
sites which deny access to wget.