fixed issue with wrong warning for adding non-existing file