fixed for Cordova 3.5.0 and tested under Windows 8.1, VS2012 and WP8 SDK

Hi, I fixed this nice hook script to get it working with latest (3.5.0) Cordova version.

See [here](https://gist.github.com/LinusU/7515016), comment from shedd at the bottom of the page