Fixed version of manage.py that selects the correct settings file based
on environment variables.