Make the repoinfo command more robust - Ref #284

This should capture more errors and make the command run from any directory.