Swap check_datasource parameters

As the datafile's format is secondary to the datasource, we put it
behind the datasource's stub.

Change-Id: I6577198897daf1c82f3e38fad610f9b22684fd7d