Delete tmp directory if it already exists

Fix #162
Rev to 1.2.9