Fix path handling breaking rvm
Fix path handling breaking rvm

Fixes #2299

hpssjellis/templates,hpssjellis/templates,c9/templates,c9/templates,hpssjellis/templates,hpssjellis/templates,hpssjellis/templates,hpssjellis/templates,c9/templates,c9/templates,c9/templates,c9/templates,hpssjellis/templates,c9/templates