Added test cases, fixed call to make_dirs() in repo.py so that it is called for both versioned and unversioned syncs