Fix for subsequents reboots

Bad check, deleted files too much.