Ensure .tmp directory is cleared before starting 

Ensure .tmp directory is cleared before starting (in case of being stopped halfway through)