script: fix systemd support

Signed-off-by: Vladislav Gorbunov <vadikgo@gmail.com>
Reviewed-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>