Fixed copyright header, factored out tailIndex and use grunt.log.writeln, see https://github.com/phetsims/chipper/issues/577
Fixed copyright header, factored out tailIndex and use grunt.log.writeln, see https://github.com/phetsims/chipper/issues/577

phetsims/chipper,phetsims/chipper,phetsims/chipper