target-test-runner: exclude package and log4j jars

Fixes #12114.
Merge pull request #1107 from melissalinkert/rebased/develop/test-runner-classpath

Exclude log4j and packages from target-test-runner (rebased onto develop)