Update rakefile to use less system and more gems