Penguin Dictionary of Historical Slang gives "scran" with a number of meanings - mostly referring to food, as Mick suggests above.
It then speicifally glosses "bad scran to " as follows:
"Bad luck to! Anglo-Irish colloquialism; from ca. 1840."Can't say I've ever heard it in practice - in or out of the song.
Regards.