better support for HP-UX, Icinga and cleanup writecheck file after check