fixed file scanning error under linux