Check that dir is writeable before creating test-summary.html