PTFM-8772: support workflow stage folders at runtime

- Also add rerun_stages support