Provide helpers to abstract extraction of source paths and filenames.
Cleanup all direct uses of source[] to use the helpers.
Add new fetch_source function to handle URLs. Depends on new __curl define.
Small unrelated change in buildpkg.packaging.irix, we must use gsed to get
\n expanded in the strings.