Cleaned up renderdoccmd, split out necessary bits to OS-specific files