Do not generate paths like /a/b/c/config/boot.rb/../../Gemfile to require and open things, create a proper path instead.