Fix file permissions to be writable