Fix file path name construction for idempotency check