Fix permission issues when running smoke test.