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