Hook to per target customize erlinit.config without fs overlay

Is there a hook to modify _build/* files just before packing the squashfs to avoid maintaining a customized overlay folder for each target?