Fix undefined class constant.
Clean tmp directories on reset.