Improve idempotency in linux-prerequisites and linux proper.

Includes testing through `./test/runner.sh`