Simplify checking/setting file.imported in ImportScanner#_scanFile.
Simplify checking/setting file.imported in ImportScanner#_scanFile.

By checking and setting this property earlier, we can avoid scanning files
more than once.

Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor