Lost dog returns home after five months