bin-package-db: copy paste writeFileAtomic from Cabal
bin-package-db: copy paste writeFileAtomic from Cabal

renameFile on Windows calls `Win32.mOVEFILE_REPLACE_EXISTING`
nowadays, which doesn't fail when the targetPath already exists.

olsner/ghc,AlexanderPankiv/ghc,GaloisInc/halvm-ghc,ml9951/ghc,ml9951/ghc,sdiehl/ghc,elieux/ghc,shlevy/ghc,siddhanathan/ghc,nkaretnikov/ghc,GaloisInc/halvm-ghc,AlexanderPankiv/ghc,olsner/ghc,vikraman/ghc,elieux/ghc,sgillespie/ghc,TomMD/ghc,vTurbine/ghc,snoyberg/ghc,TomMD/ghc,oldmanmike/ghc,anton-dessiatov/ghc,shlevy/ghc,ml9951/ghc,AlexanderPankiv/ghc,mettekou/ghc,nkaretnikov/ghc,TomMD/ghc,da-x/ghc,vTurbine/ghc,sdiehl/ghc,sdiehl/ghc,vikraman/ghc,elieux/ghc,mfine/ghc,olsner/ghc,wxwxwwxxx/ghc,AlexanderPankiv/ghc,urbanslug/ghc,wxwxwwxxx/ghc,anton-dessiatov/ghc,shlevy/ghc,ezyang/ghc,mfine/ghc,elieux/ghc,TomMD/ghc,ezyang/ghc,ml9951/ghc,sdiehl/ghc,nushio3/ghc,mcschroeder/ghc,mfine/ghc,GaloisInc/halvm-ghc,sgillespie/ghc,ghc-android/ghc,acowley/ghc,snoyberg/ghc,da-x/ghc,siddhanathan/ghc,vikraman/ghc,nushio3/ghc,ezyang/ghc,ezyang/ghc,urbanslug/ghc,tjakway/ghcjvm,siddhanathan/ghc,vikraman/ghc,mcschroeder/ghc,sgillespie/ghc,TomMD/ghc,snoyberg/ghc,nkaretnikov/ghc,snoyberg/ghc,AlexanderPankiv/ghc,siddhanathan/ghc,mettekou/ghc,acowley/ghc,sdiehl/ghc,GaloisInc/halvm-ghc,sgillespie/ghc,anton-dessiatov/ghc,vTurbine/ghc,urbanslug/ghc,mfine/ghc,urbanslug/ghc,GaloisInc/halvm-ghc,nkaretnikov/ghc,siddhanathan/ghc,siddhanathan/ghc,shlevy/ghc,da-x/ghc,urbanslug/ghc,da-x/ghc,gridaphobe/ghc,nushio3/ghc,nushio3/ghc,TomMD/ghc,mfine/ghc,shlevy/ghc,acowley/ghc,mcschroeder/ghc,nushio3/ghc,shlevy/ghc,mfine/ghc,vikraman/ghc,mettekou/ghc,anton-dessiatov/ghc,mfine/ghc,olsner/ghc,oldmanmike/ghc,da-x/ghc,TomMD/ghc,sgillespie/ghc,nkaretnikov/ghc,vTurbine/ghc,elieux/ghc,ghc-android/ghc,anton-dessiatov/ghc,da-x/ghc,ghc-android/ghc,ezyang/ghc,gridaphobe/ghc,ezyang/ghc,gridaphobe/ghc,vTurbine/ghc,vikraman/ghc,siddhanathan/ghc,vikraman/ghc,wxwxwwxxx/ghc,nushio3/ghc,acowley/ghc,acowley/ghc,snoyberg/ghc,AlexanderPankiv/ghc,wxwxwwxxx/ghc,gridaphobe/ghc,anton-dessiatov/ghc,urbanslug/ghc,mcschroeder/ghc,sgillespie/ghc,gridaphobe/ghc,mettekou/ghc,vTurbine/ghc,elieux/ghc,mcschroeder/ghc,oldmanmike/ghc,acowley/ghc,mcschroeder/ghc,ml9951/ghc,tjakway/ghcjvm,da-x/ghc,AlexanderPankiv/ghc,oldmanmike/ghc,sdiehl/ghc,sgillespie/ghc,shlevy/ghc,mettekou/ghc,urbanslug/ghc,vTurbine/ghc,olsner/ghc,mcschroeder/ghc,acowley/ghc,anton-dessiatov/ghc,wxwxwwxxx/ghc,snoyberg/ghc,oldmanmike/ghc,ghc-android/ghc,GaloisInc/halvm-ghc,tjakway/ghcjvm,tjakway/ghcjvm,ml9951/ghc,ml9951/ghc,tjakway/ghcjvm,wxwxwwxxx/ghc,nkaretnikov/ghc,nkaretnikov/ghc,ghc-android/ghc,ghc-android/ghc,gridaphobe/ghc,oldmanmike/ghc,elieux/ghc,olsner/ghc,mettekou/ghc,mettekou/ghc,oldmanmike/ghc,snoyberg/ghc,nushio3/ghc,olsner/ghc,ezyang/ghc,GaloisInc/halvm-ghc,tjakway/ghcjvm,gridaphobe/ghc,tjakway/ghcjvm,wxwxwwxxx/ghc,sdiehl/ghc,ml9951/ghc,ghc-android/ghc