bug fix for apache not starting correctly with a pty attached