[fix] Better configuration folder detection.