Make pid dir configurable