Fix ResilientOutputStreamTest

The output dir prefix did not always exist when this test was run in
CloudBees Jenkins. This patch ensures the directory is created before
the test is run.