main: fix pidfile variable initialization