fixed a bug when there were 0 files found in system

Signed-off-by: Daniel Dahlkvist (dice) <daniel.dahlkvist@dice.se>