Fix linkmode for static binaries
Fix linkmode for static binaries

The actual output of ldd is in the error which caused static binaries to
return the wrong linkmode.

Signed-off-by: Sascha Grunert <70ab469ddb2ac3e35f32ed7c2fd1cca514b2e879@suse.com>

kubernetes-incubator/cri-o,nalind/cri-o,kubernetes-incubator/cri-o,kubernetes-incubator/cri-o,nalind/cri-o,kubernetes-incubator/ocid,kubernetes-incubator/cri-o,kubernetes-incubator/ocid,kubernetes-incubator/ocid,nalind/cri-o