code cleanup and fixes for Check_MK

- fix: function pythonver was not used
- fix: could not call `nagios -vp nagios.cfg` (like Check_MK does)