Make redo compile with GHC 7.4.2 (and maybe older)

Replace `lookupEnv`, which was introduced in GHC 7.6.1, with `getEnv`,
which can throw System.IO.Error.isDoesNotExistError instead of returning
a value wrapped in Maybe.

Also hide the Prelude's catch, which conflicts with the more general one
from Control.Exception.