CB-5347 handle dangling platform symlink in cordova platform add

https://issues.apache.org/jira/browse/CB-5347