Update to work with phonegap cli