Surround %CD% cmd variable with quotes to prevent exception in writer
when path contains spaces.