majing fixes to the script to build pkgs


git-svn-id: http://fusionpbx.googlecode.com/svn/trunk@6719 e2954ef0-caed-11de-bd98-e341d93cc3cc
more changes to make it work better


git-svn-id: http://fusionpbx.googlecode.com/svn/trunk@6720 e2954ef0-caed-11de-bd98-e341d93cc3cc