Missing dog returns after month-long trek