Exclude metadata.json from deployment checksum

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

Bug 1021578
Merge pull request #3987 from ncdc/exclude-metadata-file-from-checksum

Merged by openshift-bot