detect R markdown render output file correctly on Windows