Write install receipts atomically