Minor code changes to make it compile with Java 5 (for ceylon/ceylon-compiler#1839)
Fixed the way the test finds the "example" tool so it won't confuse it with any example scripts the user might have installed in their path
Added `getRepositor(y|ies)ByTypeWithDefault()` and made `getRepositoryByType()` public (for ceylon/ceylon-compiler#1839)