Fix directory results broken in CodeIgniter upgrade