scanner: file open idiom
scanner: file open idiom

Change-Id: Ic7e574227de72fd8068acb8af83b345b5b2dbf97
(cherry picked from commit 3ee19239e31f468eb380303885abef671baaac3e)

intelxed/mbuild,intelxed/mbuild,intelxed/mbuild