Normalize paths supplied at the command line

This ensures that trailing slashes are removed if they exist.
This resolves a bug further down in the junit reporter where it would
chop off the first character of test case names if there was a trailing
slash in the path.