Avoid clone_ on windows - it leaves an open file