Fix potential glob error
Can't determine if debug mode is defined until we read the config