Better handling ruby environment

Try rvm, then chefdk
Simplify command of getting current branch name