Validates files before adding them to the queue, better performance