Fix 'sy (ls|restore|genlink)' to work in daemon-mode