conditionally delete log dir
Bump version