fixed cordova 3.6.4 bug: https://issues.apache.org/jira/browse/CB-8042