Added existsSync var for backward compatibility

Jira-issue: WP-933