make it work on Yosemite

fixes sindresorhus/default-browser#2
1.0.2