Magically read out PORT_LOGDIR. Changed double quotes into single quotes. Fixed sytax error.