Fixes stale pid files