When reading a configuration value from standard in and standard in is not connected to a terminal, read until EOF and then trim a trailing newline (if present) to get the value Fixes #822