Pass environment through.
Also optimize dynamic dependencies.
Print run commands unambiguously.