brew-test-bot: fix logs in spaced directories.
brew-test-bot: move command shortening to method.
brew-test-bot: improve JUnit output for Jenkins.