Fix format. Avoid crash on pidfile creation error.

reported by hannes_at_erven.at