Make sure b2db config folder permissions are checked properly
Fix non-working search templates (fixes issue #2469 and issue #2470)