fix undefined existsSync call

improves orignial fix for WP-1169. existsSync for Node.js on Android is defined in 'path' module.

Jira-issue: WP-1169