Testing is spotty.
Check coverage by:
go test -coverprofile=coverage.out go tool cover -html=coverage.out
Most (all?) paths has been tested manually by introducing config file errors but there should be automatic tests for it.
Add support for other platforms (main.go)