Added clone_dir for recursive copying