Support platforms other than MacOSX

'open' command is a MacOSX specific command.

I'm very beginner of ruby programming, please let me know if there are any problems
in this patch.