Checking fs.Stat error

One cannot simply leave error unckecked:

```
panic: runtime error: invalid memory address or nil pointer dereference
```