fixed invalid file check.
Merge branch 'master' of github.com:araqne/logdb