Do not ignore dotted-settings-path in wsgi and test scripts

`dotted-settings-path` options was only used in management script, in wsgi and
test scripts this option was ignored.

This change fixes this issue.