Correct logic in old-systemd fallback code
Don't block forever if we're in the running state, that's exactly where we want to be.
Simplify the code structure to be more readable.
Fixes compatibility with Debian stretch and older. 06080d3f regressed support for older systemd versions.