check_log: Fixing basename path (Closes #758662)
- Adding 11_check_log_fix_basename_path.dpatch taken from upstream
Adding 12_PATH_in_scripts_first.dpatch from upstream maint branch