main.c: fixed accidental deletion of single files with no filename extension