os.rename doesn't handle cross filesystem moves. Upaded to use shutils.move instead.