ptxdist: make icecc handling more robust

Create the reference link last and abort on error.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>