fixed bug in detect_uptime on OS X