make file.t more modern
Better compatibility with fake FileHandle created by open on perl 5.10
add more generated files to .gitignore
Test::More is required