quote variables so works with directories with spaces

Been testing installing jruby in /var/tmp/dir with space/rbenv/versions/jruby-1.7.12/bin and run across issues fixed with these changes.