use path.existsSync() for older version of nodejs
path.sep missing from older versions of nodejs