Fix corrupt repo detection

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>