Replace os.rename with shutil.move.
Replace os.rename with shutil.move.

os.rename fails in docker containers due to the special underlaying
filesystems.

From os module documentation:
  The operation may fail on some Unix flavors if src and dst are on
  different filesystems.

rishiloyola/bedrock,Sancus/bedrock,flodolo/bedrock,TheoChevalier/bedrock,jpetto/bedrock,kyoshino/bedrock,Jobava/bedrock,mermi/bedrock,craigcook/bedrock,chirilo/bedrock,sylvestre/bedrock,kyoshino/bedrock,Jobava/bedrock,TheoChevalier/bedrock,gauthierm/bedrock,mermi/bedrock,jpetto/bedrock,mkmelin/bedrock,sylvestre/bedrock,CSCI-462-01-2017/bedrock,davehunt/bedrock,sylvestre/bedrock,MichaelKohler/bedrock,kyoshino/bedrock,chirilo/bedrock,gauthierm/bedrock,pmclanahan/bedrock,mozilla/bedrock,Sancus/bedrock,sgarrity/bedrock,pascalchevrel/bedrock,TheJJ100100/bedrock,glogiotatidis/bedrock,sgarrity/bedrock,hoosteeno/bedrock,analytics-pros/mozilla-bedrock,l-hedgehog/bedrock,chirilo/bedrock,davehunt/bedrock,CSCI-462-01-2017/bedrock,jgmize/bedrock,alexgibson/bedrock,davehunt/bedrock,CSCI-462-01-2017/bedrock,mozilla/bedrock,ericawright/bedrock,davehunt/bedrock,craigcook/bedrock,mkmelin/bedrock,jgmize/bedrock,mkmelin/bedrock,schalkneethling/bedrock,TheJJ100100/bedrock,schalkneethling/bedrock,l-hedgehog/bedrock,gauthierm/bedrock,glogiotatidis/bedrock,pmclanahan/bedrock,flodolo/bedrock,pmclanahan/bedrock,sgarrity/bedrock,mermi/bedrock,rishiloyola/bedrock,analytics-pros/mozilla-bedrock,jpetto/bedrock,ericawright/bedrock,Sancus/bedrock,Jobava/bedrock,hoosteeno/bedrock,glogiotatidis/bedrock,flodolo/bedrock,pmclanahan/bedrock,sylvestre/bedrock,kyoshino/bedrock,CSCI-462-01-2017/bedrock,Jobava/bedrock,flodolo/bedrock,pascalchevrel/bedrock,jpetto/bedrock,MichaelKohler/bedrock,TheoChevalier/bedrock,ericawright/bedrock,jgmize/bedrock,MichaelKohler/bedrock,gerv/bedrock,gerv/bedrock,schalkneethling/bedrock,alexgibson/bedrock,Sancus/bedrock,chirilo/bedrock,rishiloyola/bedrock,jgmize/bedrock,analytics-pros/mozilla-bedrock,hoosteeno/bedrock,gauthierm/bedrock,TheJJ100100/bedrock,craigcook/bedrock,mermi/bedrock,gerv/bedrock,gerv/bedrock,mozilla/bedrock,pascalchevrel/bedrock,ericawright/bedrock,l-hedgehog/bedrock,TheoChevalier/bedrock,mkmelin/bedrock,l-hedgehog/bedrock,schalkneethling/bedrock,alexgibson/bedrock,mozilla/bedrock,analytics-pros/mozilla-bedrock,glogiotatidis/bedrock,alexgibson/bedrock,sgarrity/bedrock,MichaelKohler/bedrock,pascalchevrel/bedrock,craigcook/bedrock,rishiloyola/bedrock,hoosteeno/bedrock,TheJJ100100/bedrock