change default pidfile and state_path calculation