solved warning: path.existsSync is now called .