Make init.d clean up pid file properly