We don't want to show local paths in error messages. `os.Is*` calls were replaced with `errors.Is` to also match the new wrapped error.