Check that files exist before unlinking