libfetch: modernize.