doctor: use double quotes for setting PATH.

Closes #27619.