Add filename checking in fortuneprep.pl