Re-indent some code in set_file_attrs() to make the flow clearer.