Update Makefile rules for retrieving remote content

* fix #1053 by allowing curl to fail in the middle of a stack of
  booleans
* improve download function be letting it fail too

fail in this case means using curl's '-f' flag to get it to silently
exit with an error code when it gets a non success response. "Success"
appears to be similar to (equally vague as) jquery.