added detection for centos paths
ensure logs dir exists before starting daemon