use OS-specific conditional for middleclick.rb

instead of `caveats`
Merge pull request #3143 from rolandwalker/middleclick_conditional

use OS-specific conditional for middleclick.rb