Use range

I can't run `go test`.

```
--- FAIL: TestParseConfig (0.00 seconds)
panic: open test.cfg: no such file or directory [recovered]
	panic: open test.cfg: no such file or directory
```

How can I run test?