refactor build system discovery
remove debug output