Updates to gdrive download.rb
Fixed median calculation in all ruby scripts