fixed bash script to build