upload base script and dir tree