Fixed tests for version and agent

This will work on more then just linux. I would go with
```go
if runtime.GOOS != "windows"{
  c.Assert(fileInfo.Mode().Perm(), gc.Equals, os.FileMode(0600))
}
```