Add check for wwwDir to avoid having a cordova instance created on an em...

...pty one