#371 Update file protection condition

@mturalenka Please review 
(The last pull request was closed because of touched unnecessary string formatting by NetBeans)
I can`t find those variable too. So changed back.