add deleted openfiles count check
fix command path condition