Fixes distribution script.
Uses empty strings instead of None for default DATABASES values.
Allows dots in database engine name so you can specify a Python package.