fix "dir|container" type mis-judged

Docker-DCO-1.1-Signed-off-by: cheneydeng <cheneydeng@qq.com> (github: cheneydeng)