conditionally install git with gui if X is enabled