Make the repoinfo command more robust - Ref #284