waiting for agent start PCT-722

Correct, not all systems have `seq` so we implement it internally (copied from PT).