Added support for EOF and ^D and environment variables to headless_pianobar