--log-file="${...}" won't work because " will close the " at the beginning of the line
--log-file=\"${...}\" will only prepend and append " to the log filename, not exactly what we want

I'm not sure if it's at all possible to make this work with spaces.