bin/run: Adapt to run on Debian so-called GNU/Linux systems too

Amazingly Debian does not ship the realpath(1) from coreutils but has a
separate source package for it, and it's not installed by default.
Use readlink -f instead.

Change-Id: I6e97c851e6ab96dac08771145e2ab39dd9c11c22
(cherry picked from commit 9eda6b307ba6c5426c40c4cad95e07e43858230e)
bin/run: add WNT support

Change-Id: I9dd1ae23d27c5733770314ca907b5d36b749fd74
(cherry picked from commit 79233d98d98df1a56e623f35806183071499b194)
sfx2: reset the error code before 2nd load with repair (related: fdo#56245)

(regression from c7c385bb8e42d2051bcf05fd75b2146fe9852317)

Change-Id: I39eca96b45ad974a7e1a6913aa811c6b03ceced7
(cherry picked from commit ef1f3b6713118c5eb43da7fa85caf40107b468c1)