Make filenames local variables in main()