Allow writing scenarios to tempfiles

This will be used later in runner instead of compiling to a permanent location.