Handle commentstring with %%s

Prevent error when opening tex files. printf recognizes %% as a regular
% so %%s isn't an argument-accepting character sequence. Ensure that
case is escaped.
sub: bugfixes for golden-ratio
Handle paths as arguments when running from cygwin

I often pass paths (especially for python) to Windows programs from
cygwin. Convert any existing paths to Windows format.