Fix file permission issues.