Use "while read" instead of "find -exec"

Because dash doesn't have "export -f".