Fixed additional config paths in commands
Improved functional tests
Fixed database and dependency errors in tests
Enforced existing ./ext/ directory for tests
Fixes suggested by Scrutinizer
Improved bootstrap code