Do not output RPMs / SRPMs to a file in case it is used instead of a dir

Reported by Tomas Heinric, thanks!