Fix resyncing unnecessarily on windows machines.

Fixes issue: https://github.com/aws/aws-cli/issues/843
Is there any other code that would benefit from this being extracted out into this utils class?  It seems very specific to the filegenerator class?