Improvements & fixes for scripts:
* -w or --wait for waiting until master/slave finishes (returns it exit code)
* -o or --out-file for specifying where to redirect stdout/stderr
* -J for adding JVM options