Update cftester

A bug with non-empty directory fixed.