use find for linux/osx
improve the script
Merge pull request #5 from zhchang/use_find

Use find