added common fetch_remote_file()

Signed-off-by: Christopher Ross <cross@thisismyurl.com>