Fix stupid namespace separator
Use file_exists to fix the unittests
Revert "Can't determine if debug mode is defined until we read the config"

This reverts commit 969e43c87b7afb6184846fe27849167c9c6f5eab.
Set debugMode after reading the config file