Should not terminate if a directory named tmp is already in place - thanks to bhavinkamani for pointing this out.