service now detects systemd is actually running, not just installed

should fix #161 
File `f` should be closed here.