Add support for running non-TTY in sudo file edit