A man who went missing for more than a month has been found