Fixed scripts for csh and sh also fixed mac path
Doing DYLDLIBRARY only for mac, it doesn't apply to other oses
Merge remote-tracking branch 'devel/fix_runtime_mac'