Stitch output path together in more robust way.