Added deferred to createDir
Create dir had in the docs a .then(function()), but it did not return a promise. Fixed this issue.