added checkrepodirmatch function, added arrays for checking number of
local repo and local dir