Sys uptime

Forward port of original pull request https://github.com/cfengine/core/pull/229.