I guess inputs should be ../examples/inputs.  And the output should have the mkdir thing that we have in demo1..3.  I guess I always ran them in order, so I never noticed the missing isdir check for the output directory.  Thanks for catching those.