fixed detail model case sensitive issue and modified build.sh