ezremaster allows you to include a backup file. That backup should include your .X.d script. However, that only applies to the iso - the installer does not copy backups to the destination.
So, two options:
1) Modify the installer, or make your own installer.
2) Remaster your file into core.gz.