Modified bash script, made work with Gpp.scala