Secure tmp folder
Correct support for batches in plugin system.