private/deposit_checks: Ensure checks is done on filename
If done on the full path, the conditional technically fails the check for the wrong reason. This also adds tests on this case.
This got fixed in staging that way. Icinga check got back to green.