Fixed issues with log and pid files
Fixed issues with log and pid files