Update build.sh

- Fix selecting build types ("2" or "3").
- Add License.txt and readme.txt in dist-docs directory when selecting build type "2" or "3".
- Add -p option of each cp command.