fix #6400
Merge pull request #6483 from rened/osxfix

fix #6400
only limit io size on osx
fix #6495 (up/down keys broken after running top)
simpler fix for #6495

@loladiro pointed out that e19ad95 wouldn't work after

    julia> run(`top`)
fix #6419 (integer division under lldb)