fix detection of non-existing files on CentOS/RHEL