Dog reunited with owner after 500 mile trek