Added exits for no java, bad java and no git