Fixes #3562: Fix checkGenericFileContent (Failed merge)

To be merged in master

Ticket: http://www.rudder-project.org/redmine/issues/3562