Adjust many screwed up filemodes.