adjust file mode of most files to match expectations