Don't try and rewrite XPI on disk if it's already there and correct

This fixes issues if you have two projects running tests running at the same time on one machine (e.g. in CI)
Merge pull request #6 from pimterry/checkBeforeWriting

Don't try and rewrite the XPI on disk if it's already there and correct