Transform svg files to json notation
Add isTTY check to stop breaking in non TTY environments (Webstorm / Travis CI bug).
isTTY
Thanks to @j1mie