Make sure VERSION file is reasonable if it exists.
fix bad cleanup