Create a merges/<platform> folder for each configured platform

Currently the `merges/android` folder is the only one being created. This PR changes that so it uses `config.platforms` to generate a merges folder per platform.

Some guidances on writing a proper unit test for this would be really appreciated.