Added support for archiving a subdirectory within a repository.

Note that this change will cause all submodules within that subdirectory to be included in the archive, even if they are outside the subdirectory that the script is run from.