Use the library function for ruby prompt

Not everyone uses rvm and the library has already got a function for this.
Merge pull request #3071 from halilim/patch-4

Use the library function for ruby prompt