Exclude metadata.json from deployment checksum

Also sync from runtime to deployment directories prior to doing
checksum calculation.

Bug 1021578