delete old file on rename, closes #528