Create output directory in the agent in all cases.
Also support absolute paths for stage_in().