Now don't rerun if installation failed.
added --test and --test-only, to run tests before running the program, or don't run the program at all.
fixed double-run issue