karasz: fixed MAC generation to not need sed