Replaced old method calls for write_index and write gemfile with copy files