Fix deprecated usage of Path.existsSync
Merge branch 'fix-deprecations'