Package creation is now in a function, so that it's not duplicated.
Allow to use -v even if -t and -f are not specified, i.e. for both.