improve build shell script