updated to work with hapi 6 requires

needed for upgrading plugins to hapi 6.0 

https://github.com/hapijs/hapi/issues/1664