that line doesn't work. I assume the \" is being picked up as regular "

scala> JAVA_OPTS += s"-D${k}=\"${v}\""
<console>:12: error: value $ is not a member of String
              JAVA_OPTS += s"-D${k}=\"${v}\""