Merge clean.sh helper script into genrepo.sh

Signed-off-by: Nicola Squartini <tensor5@gmail.com>