Fix file permissions and file formating (for *nix systems).