Allow disabling of scratch directory cleanup. Fixes #2