Make staticbundle mimetype check based on url path

This fixes an issue when using static-compiler with
a storage backend like django-storage's s3boto that may
append a querystring to the url of the asset.