Fixes in tests for Win compat.
Compat fixes for tests in Windows.
Removed debug stuff.
Fixed running.stat check on agent/cli.
Post-install logic for *nix.