Check if repo is well-formed before adding. Should address #46