Massive check of file open lines. Changed bareword filehandles
to lexical with three-argument opens calls, added die/throw
and reason of failure $! where missing, and made error messages
more uniform and consistent with Florent Angly messages for Root
(like quoting of filenames). Also deleted a few unused open
filehandles and some unnecessary parenthesis. Tests pass.