Fixed path problem and syslog errors