fix file type checking problem.

Signed-off-by: Jaemin Yoo <jmin.yoo@gmail.com>