makefile: compensate for lazarus codegen in 'make clean'
removed stray writeln from 506c48cb631
check length before deleting (to fix a crash/freeze on backspace)