Fixed scripts not working on ubuntu 13.04

This is because the sh -> dash on 13.04. Since we are using bash commands
it makes sense to use bash directly
Merge remote-tracking branch 'devel/bug#295_fix_scripts' into devel-master