fix compilation when systemd is not available

The variable declaration had sneaked to wrong side of #if preprocessor
clause.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>