refactor the code of build.sh for perl and python cartridges
Merge pull request #964 from mscherer/refactor/cartridges/clean_build.sh

Merged by openshift-bot