Use environment variables for input file too