Added extra check against log-bin varialbe being a file prefix or path to file.