Fixed bug with nonetype if directory was added and clone was not selected.