duplicate function can_run_as_daemon() due to auto-merge
fix POST script with sysimage, minor string comparison fixes
merge with the changes in Swift 1.10.0