Fix file permission of files