Added clearsd function, fixed cask path and added ruby path