create pid dir before starting in debug mode