Switch to make the pids directory inside each app