Start to fix rpath problem with Intel compilers

Intel compilers do not recoganize '-rpath' option, so error will be issued if
they are used as the linker.
Fix a bug

We should use curly braces when dereference variables in bashrc.