Detect debug builds not by name but its property

If another build type which is initialized with debug is added,
it also should be treated as debug build.
Merge pull request #11 from zaki50/debug_build_detection

Detect debug builds not by name but its property