Prioritize uptime alternatives in headers, not in implementation.

Also simplified the logic a bit, since libpcre is now a hard dependency,
so we can always parse the "uptime" command output thus uptime
calculation will never fail.