agent: use --pidfile when running from cron (fixes #38)