Fixed debug flag check
Merge pull request #6 from seegno/debug-mode

Fix debug flag check