A bit more elegant way to find the debug flag