Make Homebrew caches directory before updating and use nano if connected over SSH