getloadavg: merge minor changes from Emacs