build: Also use proper previous tag for people list

Follow up for commit 311d4376 ("build: Make sure we get the correct
previous tag for the changelog").

Move getting the previous tag into an own command and use it where
appropriate.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>