title: $cordovaFile.createDir replace attribute not working
body: <p>I have found that the replace attribute in the createDir method is not obeyed. When set to true and the file already exists I get error code 12 (PATH_EXISTS_ERR). </p>
  
  <pre><code>$cordovaFile.createDir("test", true).then(function (result) {
      console.log("Directory Created");
  }, function(err) {
      //This line is being called when the file already exists
      console.log("Error creating directory: "+err);
  });
  </code></pre>
  
  <p>If anyone has an idea as to a work around that would be great.</p>
  
  <p>David</p>
  
  <hr>
  
  <p>To be thorough, I have specified the following in the config.xml in order to specify the default file locations.</p>
  
  <pre><code>&lt;preference name="AndroidPersistentFileLocation" value="Internal" /&gt;
  &lt;preference name="iosPersistentFileLocation" value="Library" /&gt;
  </code></pre>