Fixed existsSync function for old node