syntax error causes incorrect behaviour
now if an input dir isn't sensible, we quit AND delete temp dirs....
made input dirs sensible again