Fix 2 bugs from colorize and mmap

- In colorize there was no check on the strstr which could lead to
segfaults
- In mmap we didn't always close the file in error cases which could
  lead to errno 24