Add synchronous config viewer.

Since these are in the same file, it might be worth pull this out into a small function `getFilePath`