Fixed bug in distutils triggered by django-standalone + minor changes