Fix path.existsSync deprecation warning

Probably should've done this on a separate branch, but it was a one-off kinda thing.