Remove unused variable
Remove old dir if undo not enabled
Download submodules on update (recursive)