Parameter saving fixed

- File descriptors leak in rc_calibration_check fixed
- param_save_default() rewritten to use temp file, the worst thing that can happen - user will have old parameters file but not loose it