Optimal portfolio choice with path dependent labor income: the infinite horizon case