prevent clone to be executed if directory exists