The JSON formatter tests assumed Unix filenames which failed on Win32

This patch makes it use Path::Class instead