make sure pid folder exists