clear out tmp directory before performing upgrade.