TMP directory changes

Plugin no longer deletes tmp directory, instead it checks for existing
files inside dir to determine if there are tmp files left over.