Minor improvments in output
1. don't install rvm if already present
2. fix dpkg resolution - grep ddint suffice in this check byt ii for installed and any other for will return a value grater than 0
3. better error handeling with sudo