Removes tmp directory if only that exists.