Revert "fix detection of non-existing files on CentOS/RHEL"

This reverts commit cac37b8e984f81c4daefd88410dffce48abe4182.
fix detection of non-existing files on CentOS/RHEL