this was not working either when testnode does not pass log_directory
mentioned in merge request !948 (merged)