Fix pid directory