refactor common arguments in doctest call
a better way to detect the sandbox used

The old method was not working with the new doctests.
test README's custom prelude example.
last README example, without an input file