Fixed file permissions on generated files