Quote the variable.
Remove redundant cd.
Mention the version of rubygems.