Add Rudolph's smarter way of setting the file permissions after each run.