Keep pids in the correct location