Fix: only move log file if it exists