fix build script, can run partest suite now

test cases that need fixing:

    [partest] !! 1232 - pos/virt_sourcecontext.scala              [compilation failed]
    [partest] !! 1248 - pos/virtnew_selfref.scala                 [compilation failed]
    [partest] !! 1249 - pos/virtnew_tops_newvar.scala             [compilation failed]
    [partest] !!  158 - neg/names-defaults-neg.scala              [output differs]
    [partest] !!  183 - neg/protected-constructors.scala          [output differs]
    [partest] !!    4 - run/applydynamic_row.scala                [compilation failed]
    [partest] !!    5 - run/applydynamic.scala                    [output differs]
    [partest] !!   28 - run/analyzerPlugins.scala                 [output differs]
    [partest] !!   35 - run/class-symbol-contravariant.scala      [compilation failed]
    [partest] !!   56 - run/constant-type.scala                   [compilation failed]
    [partest] !!   57 - run/constrained-types.scala               [compilation failed]
    [partest] !!  157 - run/inline-ex-handlers.scala              [compilation failed]
    [partest] !!  180 - run/kind-repl-command.scala               [compilation failed]
    [partest] !!  195 - run/lub-visibility.scala                  [compilation failed]
    [partest] !!  205 - run/macro-bundle-repl.scala               [compilation failed]
    [partest] !!  280 - run/macro-repl-basic.scala                [compilation failed]
    [partest] !!  281 - run/macro-repl-dontexpand.scala           [compilation failed]
    [partest] !!  287 - run/macro-system-properties.scala         [compilation failed]
    [partest] !!  395 - run/position-val-def.scala                [output differs]
    [partest] !!  412 - run/reflection-equality.scala             [compilation failed]
    [partest] !!  427 - run/reflection-magicsymbols-repl.scala    [compilation failed]
    [partest] !!  443 - run/reflection-repl-classes.scala         [compilation failed]
    [partest] !!  445 - run/reflection-repl-elementary.scala      [compilation failed]
    [partest] !!  457 - run/reify-repl-fail-gracefully.scala      [compilation failed]
    [partest] !!  526 - run/reify_newimpl_22.scala                [compilation failed]
    [partest] !!  527 - run/reify_newimpl_23.scala                [compilation failed]
    [partest] !!  528 - run/reify_newimpl_25.scala                [compilation failed]
    [partest] !!  529 - run/reify_newimpl_26.scala                [compilation failed]
    [partest] !!  533 - run/reify_newimpl_35.scala                [compilation failed]
    [partest] !!  570 - run/repl-assign.scala                     [compilation failed]
    [partest] !!  572 - run/repl-bare-expr.scala                  [compilation failed]
    [partest] !!  573 - run/repl-colon-type.scala                 [compilation failed]
    [partest] !!  574 - run/repl-empty-package                    [compilation failed]
    [partest] !!  575 - run/repl-javap-app.scala                  [compilation failed]
    [partest] !!  576 - run/repl-javap-def.scala                  [compilation failed]
    [partest] !!  577 - run/repl-javap-fun.scala                  [compilation failed]
    [partest] !!  578 - run/repl-javap-mem.scala                  [compilation failed]
    [partest] !!  579 - run/repl-javap-memfun.scala               [compilation failed]
    [partest] !!  580 - run/repl-javap-more-fun.scala             [compilation failed]
    [partest] !!  582 - run/repl-javap-outdir                     [compilation failed]
    [partest] !!  583 - run/repl-javap.scala                      [compilation failed]
    [partest] !!  584 - run/repl-out-dir.scala                    [compilation failed]
    [partest] !!  586 - run/repl-javap-outdir-funs                [compilation failed]
    [partest] !!  587 - run/repl-paste-2.scala                    [compilation failed]
    [partest] !!  588 - run/repl-parens.scala                     [compilation failed]
    [partest] !!  589 - run/repl-paste-3.scala                    [compilation failed]
    [partest] !!  590 - run/repl-paste-4.scala                    [compilation failed]
    [partest] !!  592 - run/repl-paste-raw.scala                  [compilation failed]
    [partest] !!  593 - run/repl-paste.scala                      [compilation failed]
    [partest] !!  594 - run/repl-power.scala                      [compilation failed]
    [partest] !!  595 - run/repl-reset.scala                      [compilation failed]
    [partest] !!  596 - run/repl-term-macros.scala                [compilation failed]
    [partest] !!  597 - run/repl-save.scala                       [compilation failed]
    [partest] !!  598 - run/repl-transcript.scala                 [compilation failed]
    [partest] !!  599 - run/repl-trim-stack-trace.scala           [compilation failed]
    [partest] !!  600 - run/repl-type-verbose.scala               [compilation failed]
    [partest] !!  616 - run/selectdyn.scala                       [output differs]
    [partest] !!  621 - run/settings-parse.scala                  [output differs]
    [partest] !!  761 - run/t2464                                 [compilation failed]
    [partest] !!  821 - run/t3376.scala                           [compilation failed]
    [partest] !!  902 - run/t4025.scala                           [compilation failed]
    [partest] !!  919 - run/t4172.scala                           [compilation failed]
    [partest] !!  924 - run/t4216.scala                           [compilation failed]
    [partest] !!  926 - run/t4285.scala                           [compilation failed]
    [partest] !!  946 - run/t4542.scala                           [compilation failed]
    [partest] !!  955 - run/t4594-repl-settings.scala             [compilation failed]
    [partest] !!  962 - run/t4671.scala                           [compilation failed]
    [partest] !!  967 - run/t4710.scala                           [compilation failed]
    [partest] !!  988 - run/t4891                                 [compilation failed]
    [partest] !! 1004 - run/t5072.scala                           [compilation failed]
    [partest] !! 1023 - run/t5256d.scala                          [compilation failed]
    [partest] !! 1065 - run/t5313.scala                           [compilation failed]
    [partest] !! 1090 - run/t5535.scala                           [compilation failed]
    [partest] !! 1092 - run/t5537.scala                           [compilation failed]
    [partest] !! 1100 - run/t5583.scala                           [compilation failed]
    [partest] !! 1115 - run/t5655.scala                           [compilation failed]
    [partest] !! 1131 - run/t5789.scala                           [compilation failed]
    [partest] !! 1180 - run/t6086-repl.scala                      [compilation failed]
    [partest] !! 1190 - run/t6146b.scala                          [compilation failed]
    [partest] !! 1199 - run/t6187.scala                           [compilation failed]
    [partest] !! 1219 - run/t6240-universe-code-gen.scala         [non-zero exit code]
    [partest] !! 1228 - run/t6273.scala                           [compilation failed]
    [partest] !! 1233 - run/t6288b-jump-position.scala            [compilation failed]
    [partest] !! 1241 - run/t6320.scala                           [compilation failed]
    [partest] !! 1243 - run/t6329_repl.scala                      [compilation failed]
    [partest] !! 1244 - run/t6329_repl_bug.scala                  [compilation failed]
    [partest] !! 1248 - run/t6331b.scala                          [compilation failed]
    [partest] !! 1258 - run/t6381.scala                           [compilation failed]
    [partest] !! 1267 - run/t6434.scala                           [compilation failed]
    [partest] !! 1268 - run/t6439.scala                           [compilation failed]
    [partest] !! 1281 - run/t6507.scala                           [compilation failed]
    [partest] !! 1286 - run/t6549.scala                           [compilation failed]
    [partest] !! 1287 - run/t6546                                 [compilation failed]
    [partest] !! 1338 - run/t6863.scala                           [output differs]
    [partest] !! 1343 - run/t6937.scala                           [compilation failed]
    [partest] !! 1345 - run/t6955.scala                           [compilation failed]
    [partest] !! 1346 - run/t6956.scala                           [compilation failed]
    [partest] !! 1362 - run/t7106                                 [compilation failed]
    [partest] !! 1368 - run/t7185.scala                           [compilation failed]
    [partest] !! 1387 - run/t7319.scala                           [compilation failed]
    [partest] !! 1410 - run/t7482a.scala                          [compilation failed]
    [partest] !! 1431 - run/t7634.scala                           [compilation failed]
    [partest] !! 1433 - run/t7711-script-args.scala               [compilation failed]
    [partest] !! 1436 - run/t7747-repl.scala                      [compilation failed]
    [partest] !! 1442 - run/t7791-script-linenums.scala           [compilation failed]
    [partest] !! 1444 - run/t7801.scala                           [compilation failed]
    [partest] !! 1445 - run/t7805-repl-i.scala                    [compilation failed]
    [partest] !! 1448 - run/t7852.scala                           [compilation failed]
    [partest] !! 1460 - run/t7974                                 [compilation failed]
    [partest] !! 1477 - run/t8047.scala                           [output differs]
    [partest] !! 1504 - run/t8601-closure-elim.scala              [compilation failed]
    [partest] !! 1512 - run/t8608-no-format.scala                 [compilation failed]
    [partest] !! 1530 - run/test-cpp.scala                        [compilation failed]
    [partest] !! 1540 - run/tpeCache-tyconCache.scala             [compilation failed]
    [partest] !! 1595 - run/virtnew_optiql.scala                  [compilation failed]
    [partest] !! 1596 - run/virtnew_var.scala                     [compilation failed]
    [partest] !! 1610 - run/virtpatmat_problang.scala             [compilation failed]
    [partest] !! 1612 - run/virtpatmat_rulelang.scala             [compilation failed]
    [partest] !! 1614 - run/virtpatmat_problang3.scala            [compilation failed]
    [partest] !! 1615 - run/virtpatmat_stagingreified.scala       [compilation failed]
    [partest] !! 1632 - run/virtscopes_retrep.scala               [output differs]
    [partest] !!   11 - jvm/bytecode-test-example                 [compilation failed]
    [partest] !!   14 - jvm/constant-optimization                 [compilation failed]
    [partest] !!   27 - jvm/interpreter.scala                     [compilation failed]
    [partest] !!   29 - jvm/named-args-in-order                   [compilation failed]
    [partest] !!   33 - jvm/opt_value_class                       [compilation failed]
    [partest] !!   34 - jvm/nooptimise                            [compilation failed]
    [partest] !!   37 - jvm/patmat_opt_ignore_underscore          [compilation failed]
    [partest] !!   38 - jvm/patmat_opt_no_nullcheck               [compilation failed]
    [partest] !!   39 - jvm/patmat_opt_primitive_typetest         [compilation failed]
    [partest] !!   90 - jvm/t6941                                 [compilation failed]
    [partest] !!   92 - jvm/t7006                                 [compilation failed]
    [partest] !!   95 - jvm/t7181                                 [compilation failed]
    [partest] !!   96 - jvm/t7253                                 [compilation failed]
    [partest] !!   98 - jvm/t8582.scala                           [compilation failed]
    [partest] !!  100 - jvm/throws-annot-from-java                [compilation failed]
    [partest] !!  102 - jvm/unreachable                           [compilation failed]
    [partest] !!  103 - jvm/value-class-boxing                    [compilation failed]
    [partest] !!  107 - jvm/xml05.scala                           [compilation failed]
    [partest] !!   24 - scalacheck/quasiquotes                    [ScalaCheck test failed]
    [partest] !!    1 - instrumented/InstrumentationTest.scala    [compilation failed]
    [partest] !!    2 - instrumented/t6611.scala                  [compilation failed]
    [partest] !!    3 - instrumented/inline-in-constructors       [compilation failed]