Check if OSX or Linux

In order to install and use on Linux, need to check if `$OSTYPE` is
using darwin or linux to choose appropriate installation path.