Looking at your first pic, it's definitely one of the first two head gaskets since the crankcase vent hose is still beside the oil fill cap. The last iteration of the M42 had this hose at the back of the valve cover.
Run the last 7 digits of the VIN number (of the vehicle this engine originally came from) in realoem.com. If your production date is before 9/92, get 11-12-9-063-333. Otherwise, get 11-12-9-065-439.
Since you're taking the head off anyway, you can always send back the headgasket if you get the wrong one.