Creates temp file and ignores any lines with "require_relative" and "spec_helper," adds correct "require_relative" line at start, then deletes whole temp file afterwards.