use find + exec + basename for better performance

This updates the find command with exec + basename.