Update initd.py

Fix for pid IOError when stopping an already stopped daemon.