While we're here, also drop the unnecessary commands to replicate the exit code.
Also add a helper executable that implements the check for Hyper-V (like ConditionVirtualization=microsoft in the systemd units). (cherry picked from commit 50747480c882dae7d3c8f7b4d0df5cf3276c4ee5)