Use find and xargs to avoid 'too many args' error on Mac OS X
Port 96630c7 to makexpi.sh