Delete stats directory only if it exists

Causes build failures without this fix on the build machine