We need to switch to copy module instead of ini_file since it doe not support putting the same key multiple times in a section.