append pid number in FileWriter instead of prepending it