Made mkdir of log/pids directories use try_sudo