Bugfixes and cross-platform get IDLE time