Kasp check dual_log has LF somewhere and somewhere not and its logging t...

...o both syslog and console, for syslog no LF is needed but its needed for console. This fixes that by adding the LF in dual_log function itself instead from the caller. Fix kasp check check_path(), it was checking the stat structure for directory even if it stat'ed a non existing directory and it may return 0 because of that, now do the checks in the correct order.