Fixed tests for version and agent

I would like to see OS dependent system messages in a separate package maybe. Can you have a quick look at the different mesages that may pop up and create a package?

We could then simply go with: 

```go
c.Assert(err, gc.ErrorMatches, errmessages.FileNotFound)
```

Thoughts?