Update cask and safe variables