Fix a issue that files and directories in the var aren't removed recursively