Added git clone and updating for 'foam-extend 3.1'.