Fix issue when author organizes dists in dirs

If author puts files under

id/A/AM/AMBS/Math/Math-GSL.tar.gz

for example, the heuristic to find the author name will fail.
This patch fixes it.

I would appreciate a release ASAP :)