check if file is a real file, not a directory, symlink, ..

I have a repository with a symlink script.pl. The target does not exist when developing/testing.
scan-perl-prereqs dies in this repository.
Checking for -f fixes this.