Bug fix: remove existing file before replacing it.