Don't run PYTHONSTARTUP file if a file, code or module is passed

This is in line with how Python behaves
Simplify logic
Merge pull request #5226 from bouk/fix-pythonstartup

Don't run PYTHONSTARTUP file if a file or code is passed