Make check more strong and readble. Also make dhcp6c use its pid file to make things easy