#30 Change pids to string before writing pidfiles from controller