Create pid directory before putting stuff in it