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
Fixed python and ld library paths
Merge branch 'bug#295_fix_scripts'