Use find instead of ls to delete code files and directories.

Possible replacement for #251 

@danimo @DeepDiver1975 @kabum