git-cache optimizations and nokogiri mac os build fix

/cc: @opscode/client-eng / @opscode/release-engineers