Set system path based on OS.