Fix debug flag detection, silly typo.