Added functionality to check OS and load cask from proper location