t4041 (diff-submodule-option): rewrite add_file() routine