Add missing write_file to Common.pm