Replace perl scalaproj with shell + pure-Java