Is your ROM a headerless smc file? If so, change its extension to sfc.
If the ROM's extension is smc, Asar will assume it has a header. If it is sfc, Asar will assume it doesn't have a header.
(I tested this patch with headerless ROMs, but not headered ones! )