Fixed too long command line error

Changed the plugin to write all arguments on a file and pass it to tsc using the @file option.
Improved fix for "too long command line" error

Fixed tests, improved code.