build/base: fix systemd on RH/CentOS

I introduced an issue in the last commit where I used the wrong variable
in the case.
I should have used $dist instead of $OS.