Add Mac OS X compatibility for ranger feature of syl20bnr theme

Hi Bruno,

This PR adds the support for Mac OS X of the "ranger" feature in syl20bnr theme.

Cheers,
syl20bnr