The problem is as following.
Error installing libv8: ERROR: Failed to build gem native extension. D:/Ruby193/bin/ruby.exe extconf.rb creating Makefi
I could be reading this wrong, but I think the problem is this line:
unless system 'which python2 2>&1 > /dev/null'
It's looking for python2 when in fact the command for python is simply python.
python2
python
Perhaps try aliasing python to python2.