France's move to ditch Windows for Linux is its latest effort to reduce its reliance on American tech giants.