Fixed python and ld library paths
Merge remote-tracking branch 'devel/bug#295_fix_scripts' into devel-master