Fixed bug where task attempted to recreate existing directory.