Use query Scope='RecursiveAll' to iterate through sub folders of Master page library because we might have file in folder hierarchy