Fixed config reading, pidfile unlinking