Merge pull request #30 from richard-green/development

Octopus 2 package change - DO NOT MERGE
Add a half second sleep after deleting a dirctory to allow for everything to catch up. - have seen situations where the delete has not occurred when the copy is triggered
Refactor & improve the file copy.  Pass a delegate with a  directory check into the retry function.

This should prevent situations where the directory is deleted between retries causing errors.
Merge pull request #31 from BlythMeister/Ensconce

Better retry handling