The dist-docs/buildup.sh is updated for detecting os.