fix for ico ext in gen_file