Flush output after printing

* Fixes compiled jar
Fix Ruby version

* Caleb wrote for bash because...he wrote it for bash