use rugged_check_repo everywhere
Merge pull request #245 from nvloff/rugged_check_repo

use rugged_check_repo everywhere