Fix ubuntu 14.04 restart networking bug