fix gh-1540 and close gh-1541. Don't use rpath if the user didn't provided cuda.root.
Merge pull request #1554 from nouiz/fix-1540

fix gh-1540 and close gh-1541. Don't use rpath if the user didn't provid...