As shown by the recent issue with pkg not initializing rootfd, errors from Lua io.* library calls were not being checked for and resulted in incomprehensible failures such as "attempt to index a nil value".
This patches Keywords/shell.ucl to report the error via assert() (which is the Lua idiom for this).
Discussed with bapt on IRC.