Remove duplicate definition of readMaybe
Move definition of getEnv to Compat module and rename it to lookupEnv
Do not use color if `TERM=dumb` (fixes #158)