Fix raking with an included Gemfile.apk

A problem would occur when your building directory had a space in it,
fixed by adding quotes around the paths inside the command line action.
Also fixed an issue where the Gem.paths would be set wrong, fixed by
specifying the GEM_PATH key of the gem_paths variable.