fix fs has no method 'existsSync'