Rename _main() to main()

No idea why I chose the former instead of the latter.
Search both stdout and stderr for _smc_sDetectPattern
Fix stripping the wrong end of the docstring
Fix alignment of numbers output by Logger.test_summary()
Refactor Logger.test_summary() to de-duplicate similar blocks of code
Fix incorrect handling of ForeignLibDependency dependencies by ExecutableTarget
Remove unncessary check
Specialize exceptions raised in make.*