Fix the prompt detection again
Implement "wait" step for paths