Improve script portability - quote vars in 'local' assignment
Some shells may apply word splitting after expanding variable in
`local a=$1`. I know just about yash, but since `local` is supposed to
be a builtin *command*, the "correct" behaviour of common shells is
actually a special case. See
https://osdn.net/projects/yash/ticket/46041.