Fixes shell escaping errors with nested quotes in windows.