check if file is a real file, not a directory, symlink. Also remove use lib "$Bin/../lib"

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.