Added compatibility with django-staticfiles

I had trouble trying to use django-staticfiles instead of Django's shipped version. This fixes the issue (for django-staticfiles at least)