Updated scripts to compile Policy Manager

Jira issue: WP-331
Merge pull request #53 from smonteleone/WP-331

Updated scripts to compile Policy Manager
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