Fixing existsSync issues for older versions of node