Showing error messages on standard input if running the command directly or if MAILTO variable is not defined, adding error message if GeoIP directory does not exists