file var -> pluginname var, simpler tempfile/dir handling