Fix compatibility with modern versions of django-pipeline.

django-pipeline removed match_location() in a recent release, which
broke our packaging and static finding. They no longer needed it, due to
other changes they made, but we still need it for our cross-storage
lookups. This brings over an equivalent version of the function.