Fix wrong promise result for updated file copy