Merge pull request #414 from carlosmn/repo-discover-short repsitory: use better error code if path is too short for discover