Added option for redirection of stdout to jcblock.log for headless opertion