improve source file searching in edit. #2594