Handle spaces in log directory names