err variable misnamed -> error

Trying to get this to work on Windows, triggered this typo since I don't have an equivalent cp utility in my environment yet.