Fix bad file mode string, Fix #7958
Merge pull request #8032 from basepi/daemonizewr7958

Fix bad file mode string, Fix #7958