CopyFile uses File.copySync instead of File.writeAsBytesSync

`copySync` cannot fully copy the permissions. See https://code.google.com/p/dart/issues/detail?id=21900
But `copySync` copy the 'execute' permission at least.

@devoncarew