The attached patch fixes an intermittent test failure, when the randomly-generated directory name used in the test happens to contain the substring “foo” (which is something the test looks for). -- Peter Oliver