Ensure open, opendir and chdir return values are checked

Files missing (any) return value check have been changed to use
autodie for these functions (and close were relevant).

NB: checks/manpages was a false-positive, but was "fixed" anyway to
allow perlcritic to perform this check automatically.

Signed-off-by: Niels Thykier <niels@thykier.net>